package main

import "fmt"

// 多维数组
func main() {
	// 一维数组
	var a [5]int
	a = [5]int{1, 2, 3, 4, 5}

	// 二位数组
	var b [3][2]int
	b = [3][2]int{
		[2]int{0, 1},
		[2]int{2, 3},
		[2]int{4, 5},
	}

	c := [...][2]int{
		{1,2},
		{3,4},
	}
	fmt.Println(a, b, c)

	for k,v := range b{
		fmt.Println(k,v)
	}
}
